// JavaScript Document
function abrirPag(valor){
// Verificar o Browser
// Firefox, Google Chrome, Safari e outros
if(window.XMLHttpRequest) {
req = new XMLHttpRequest();
}
// Internet Explorer
else if(window.ActiveXObject) {
req = new ActiveXObject("Microsoft.XMLHTTP");
}
var url = valor;
req.open("Get", url, true);
req.onreadystatechange = mudancaEstado;
req.send(null);
if (req.readyState == 1) {
document.getElementById("conteudo_mostrar").innerHTML = "";
}
return url;
}
function mudancaEstado(){
if (req.readyState == 4){
document.getElementById("conteudo_mostrar").innerHTML = req.responseText;
}
}